package com.yuanfeng.userms.feign;

import com.yuanfeng.commoms.dto.oos.OssUploadUpdateParamDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author Stranger
 * @date 2023/3/24 9:30
 */
@FeignClient(name = "mall-third-party", url = "http://localhost:8088")
public interface ThirdPartyServiceClient {

    /**
     * 上传
     *
     * @param param
     * @return
     */
    @PostMapping("/web/oss/upload")
    ResponseResult uploadPic(@RequestBody OssUploadUpdateParamDTO param);

    /**
     * plus 会员 充值短信
     */
    @PostMapping(value = "sms/plusmemberopenSend")
    public ResponseResult plusmemberopenSend(@RequestBody Map<String,String> map);


    /**
     * 开通plus会员短信
     * @param paraMap
     * @return
     */
    @PostMapping("/sms/userPlus/renew")
    ResponseResult userPlusRenew(@RequestBody Map<String, String> paraMap);

    /**
     * 发送店铺资质短信
     */
    @RequestMapping("/sms/storeQualification")
    ResponseResult storeQualification(@RequestBody Map map);
}
